<?xml version="1.0"?>
<component name="org.nuxeo.web.ui.announcement.contrib.override">

  <require>org.nuxeo.web.ui.announcement.contrib</require>

  <documentation>

    WEBUI-1786: storage for the Web UI administrator announcement banner.

    The banner is held in a single directory entry whose id is `announcement`.
    A directory is used rather than a document so that the value is invisible to
    document navigation/search, and so that the platform's default directory
    security applies: every authenticated user can read the entry (the banner has
    to render for all users) while only administrators can write it.
  

  </documentation>
  <extension point="caches" target="org.nuxeo.ecm.core.cache.CacheService">
    <cache name="webUIAnnouncement-entry-cache">
      <ttl>10</ttl>
      <option name="maxSize">1</option>
      <option name="concurrencyLevel">10</option>
    </cache>
    <cache name="webUIAnnouncement-entry-cache-without-references">
      <ttl>10</ttl>
      <option name="maxSize">1</option>
      <option name="concurrencyLevel">10</option>
    </cache>
  </extension>

</component>
